﻿import cgi
import datetime
import wsgiref.handlers
import os
import MyClassService

from google.appengine.ext import db
from google.appengine.api import users
from google.appengine.ext import webapp
from google.appengine.ext.webapp import template



class Report_Student_CourseReport(webapp.RequestHandler):
    def post(self):
        studentNumber=cgi.escape(self.request.get('studentNumber'));
        courseName=cgi.escape(self.request.get('courseName'));
        self.response.out.write('''{
                                    'course':[67,80,77,79,90,79,95,85],
                                    'order':[5,16,13,4,5,6,2,1]
                                }''');


##class Report_Student_OrderReport(webapp.RequestHandler):
##    def post(self):
##        studentNumber=cgi.escape(self.request.get('studentNumber'));
##        courseName=cgi.escape(self.request.get('courseName'));
##        self.response.out.write('[5,16,13,4,5,6,2,1]');


class Report_Gen_ClassPie(webapp.RequestHandler):
    def post(self):
        courseName=cgi.escape(self.request.get('courseName'));
        self.response.out.write('''{
                                    'classpie':[1,1,1,1,1,8]
                                }''');




